package tech.lq0.dreamaticdelight;

import com.mojang.logging.LogUtils;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.slf4j.Logger;
import tech.lq0.dreamaticdelight.init.DMDItems;
import tech.lq0.dreamaticdelight.init.DMDTabs;

@Mod(ModUtils.MOD_ID)
public class ModUtils {

    public static final String MOD_ID = "dreamaticdelight";

    private static final Logger LOGGER = LogUtils.getLogger();

    public ModUtils() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();

        DMDItems.register(modEventBus);
        DMDTabs.register(modEventBus);

        MinecraftForge.EVENT_BUS.register(this);
    }

    public static ResourceLocation loc(String path) {
        return new ResourceLocation(MOD_ID, path);
    }

}
